package org.JWCB.job.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.JWCB.job.domain.message.entity.Message;
import org.JWCB.job.mapper.message.MessageMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class MessageService extends ServiceImpl<MessageMapper,Message> {
    @Transactional(rollbackFor = Exception.class)
    public boolean batchSave(List<Message> messageList) {
        return saveBatch(messageList);
    }
}
